package cool.houge.demo.entity;

import io.ebean.annotation.View;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.Instant;
import java.time.LocalDate;

/**
 * 薪水.
 *
 * @author ZY (kzou227@qq.com)
 */
@Getter
@Setter
@Entity
@View(name = "v_salary_summary")
public class VSalarySummary {

    @Id
    private Integer id;

    private Instant createTime;

    private LocalDate payday;

    private String payYear;

    private String payMonth;

    private BigDecimal salary;

    private Integer employeeId;

    private String employeeName;

    private Integer departmentId;

    private String departmentName;
}
